module.exports = {
    'screenshot': function(test) {
        test.open('http://192.168.1.122')
            .wait(1000)
            .screenshot('screenshot/index-page/:browser-:datetime.png')
            .done();
    },
    'prompt': function(test) {
        test.open('http://192.168.1.122/event/alpha-test')
            .click('.event-subscribe-button')
            .answer('13951893509')
            .wait(1000)
            .assert.text('.event-subscribe-button', '已成功设置提醒')
            .assert.attr('.event-subscribe-button', 'class', 'active')
            .done();
    },
    'sendKeys': function(test) {
        test.open('http://192.168.1.122/event/wise1')
            .wait(1000)
            .sendKeys('body', '\u0020')
            .sendKeys('body', '\u0020')
            .sendKeys('body', '\u0020')
            .sendKeys('body', '\u0020')
            .screenshot('screenshot/footer/:browser-:datetime.png')
            .done();
    }
};
